package com.example.lx6_1

import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import com.alibaba.android.arouter.facade.annotation.Route
import com.bumptech.glide.Glide
import com.example.base.mvvm.BaseViewActivity
import com.example.lx6_1.databinding.ActivityMain2Binding
import com.youth.banner.loader.ImageLoader
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
@Route(path = "/app/MainActivity2")
class MainActivity2 : BaseViewActivity<ActivityMain2Binding>() {

    var img = mutableListOf<Int>()
    override fun initView() {
        img.add(R.drawable.sss)
        img.add(R.drawable.sss2)
        img.add(R.drawable.sss3)
        binding.ban.setImages(img)
            .setImageLoader(object : ImageLoader() {
                override fun displayImage(context: Context?, path: Any?, imageView: ImageView?) {
                    Glide.with(context!!).load(path).into(imageView!!)
                }

            })
            .setDelayTime(3000)
            .start()
    }

    override fun initData() {

    }

}